/*
 * prottest.c
 *
 *  Created on: May 25, 2014
 *      Author: eran
 */

#include "types.h"
#include "stat.h"
#include "user.h"


int
main(int argc, char *argv[])
{
  void *i = main;
  char *str = (char*)i;
  int pid = fork();
  if (!pid){
	  printf(1, "Child created.\n");
	  printf(1, "Child is launching attempt to manipulate main (will print 'success' upon success, trap otherwise):\n");
	  str[0] = 'f';
	  printf(1, "Attempt succeeded, need to debug...\n");
	  exit();
  }
  wait();


  exit();
}

